package cn.edu.sgu.www.mhxysy.mapper.chongwu;

import cn.edu.sgu.www.mhxysy.entity.chongwu.ChongwuNeidanResonance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface ChongwuNeidanResonanceMapper extends BaseMapper<ChongwuNeidanResonance> {

    /**
     * 查询内丹生效的共鸣内丹数量
     * @param chongwuId 宠物ID
     * @param neidanId 高级内丹ID
     * @return int 共鸣数量
     */
    int selectResonanceCount(
            @Param("chongwuId") String chongwuId,
            @Param("neidanId") String neidanId
    );
}